
package org.springxrsk.modules.signup.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.signup.pojo.entity.QyStudentsOrderEntity;
import org.springxrsk.modules.signup.pojo.vo.QyStudentsOrderVO;
import java.util.Objects;

/**
 * 订单管理 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-19
 */
public class QyStudentsOrderWrapper extends BaseEntityWrapper<QyStudentsOrderEntity, QyStudentsOrderVO>  {

	public static QyStudentsOrderWrapper build() {
		return new QyStudentsOrderWrapper();
 	}

	@Override
	public QyStudentsOrderVO entityVO(QyStudentsOrderEntity qyStudentsOrder) {
		QyStudentsOrderVO qyStudentsOrderVO = Objects.requireNonNull(BeanUtil.copyProperties(qyStudentsOrder, QyStudentsOrderVO.class));

		//User createUser = UserCache.getUser(qyStudentsOrder.getCreateUser());
		//User updateUser = UserCache.getUser(qyStudentsOrder.getUpdateUser());
		//qyStudentsOrderVO.setCreateUserName(createUser.getName());
		//qyStudentsOrderVO.setUpdateUserName(updateUser.getName());

		return qyStudentsOrderVO;
	}


}
